package com.demo;

import com.alibaba.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * Run with: {@code -Dcsp.sentinel.api.port=8723 -Dcsp.sentinel.dashboard.server=localhost:8080 -Dproject.name=web-demo}.
 */
@SpringBootApplication
@EnableDubbo
public class SentinelDubboUserConsumer03 {
    public static void main(String[] args) throws Exception {
        SpringApplication.run(SentinelDubboUserConsumer03.class, args);
        System.out.println("启动成功...");

//        ClusterTokenServer tokenServer = new SentinelDefaultTokenServer();
//        //传输配置
//        ClusterServerConfigManager.loadGlobalTransportConfig(new ServerTransportConfig()
//                .setIdleSeconds(600).setPort(18270));
//        ClusterServerConfigManager.loadServerNamespaceSet(Collections.singleton("sentinel-app"));
//        tokenServer.start();

    }
}
